package com.shiguiwu.springmybatis.spring.pchild;

import com.shiguiwu.springmybatis.spring.lifecycle.definition.Pig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @description: 学生蕾蕾
 * @author: stone
 * @date: Created by 2021/3/31 22:07
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.pchild
 */
@Component
public class Student {
    @Autowired
    private User user;

//    @Autowired
//    private Pig pig;

    public void m1() {

    }

    @Bean
    public Pig pig1() {
        return new Pig();
    }

}
